package sandbox.task.math;

import java.util.Random;

public class Npoints {

    public static void solve(int N) {
        double[] x = prepareRandomArray(N);
        for(int i = 0; i < N; i++) {
            
        }
    }

    public static double[] prepareRandomArray(int N) {
        double[] x = new double[N];
        Random rand = new Random();
        for(int i = 0; i < N; i++) {
            x[i] = rand.nextDouble();
        }
        return x;
    }
}
